package handlerChain;

public class CHandler implements BaseFilterHandler{


    @Override
    public boolean isHandler(String status) {
        return "success".equals(status);
    }

    @Override
    public boolean handle(SerialOrder object) {
        if(object.getStatus().equals("success")){
            System.out.println("流水单当初处于 success 状态");
            System.out.println("success 状态处理中.....");
            System.out.println("流水单 success 状态处理结束");
            return true;
        }else{
            object.setStatus("success");
        }

        return false;
    }
}
